package com.lq.ecoldchain.ui.main.orderlist.orderpay

import org.kodein.di.Kodein
import org.kodein.di.android.support.AndroidLifecycleScope
import org.kodein.di.generic.bind
import org.kodein.di.generic.instance
import org.kodein.di.generic.scoped
import org.kodein.di.generic.singleton

/*
*2019/1/17 0017  18:04
*function by lq
*/
val orderPayKodeinModule = Kodein.Module("Order_Pay_Kodein_Module"){

    bind<OrderPayViewModel>() with scoped(AndroidLifecycleScope).singleton {
        OrderPayViewModel()
    }
    bind<OrderPayDelegate>() with scoped(AndroidLifecycleScope).singleton {
        OrderPayDelegate(instance())
    }

}